package com.score.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TUser {

    @ApiModelProperty("教育制度")
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("账号")
    private String username;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("角色ID")
    private Integer roleId;

    public TUser(String num, String encode, Integer roleId) {
        this.username = num;
        this.password = encode;
        this.roleId = roleId;
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}